package com.qianyu.project.mapper;

import com.qianyu.project.entity.Dept;
import com.qianyu.project.entity.ProjectInfo;
import com.qianyu.project.entity.SecurityLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qianyu.project.entity.SystemUser;
import com.qianyu.project.mapper.provider.zxm.SecurityLogProvider;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 安全日志 Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Repository
public interface SecurityLogMapper extends BaseMapper<SecurityLog> {
@SelectProvider(method = "getSecurityLogList",value = SecurityLogProvider.class )
    List<SecurityLog> getSecurityLogList(SecurityLog sl);
    @SelectProvider(method = "getProjectName",value = SecurityLogProvider.class )
    List<ProjectInfo> getProjectName();
    @SelectProvider(method = "getDeptName",value = SecurityLogProvider.class )
    List<Dept> getDeptName();
    @SelectProvider(method = "getUserName",value = SecurityLogProvider.class )
    List<SystemUser> getUserName();
 @DeleteProvider(method = "deleteSecurityLogId",value = SecurityLogProvider.class )
    void deleteSecurityLogId(String id);
    @SelectProvider(method = "getSecurityLogId",value = SecurityLogProvider.class )
    SecurityLog getSecurityLogId(String id);
@InsertProvider(method = "addSecurityLog",value = SecurityLogProvider.class )
    void addSecurityLog(SecurityLog ss);
@UpdateProvider(method = "updateSecurityLog",value = SecurityLogProvider.class )
    void updateSecurityLog(SecurityLog sl);
}
